package com.eshop.modules.product.service.dto;

import io.swagger.annotations.ApiModelProperty;

public class AttrValueDto
{
    @ApiModelProperty("属性")
    private String attr;
    @ApiModelProperty("是否选择")
    private Boolean check;
    
    public AttrValueDto() {
        this.check = false;
    }
    
    public String getAttr() {
        return this.attr;
    }
    
    public Boolean getCheck() {
        return this.check;
    }
    
    public void setAttr(final String attr) {
        this.attr = attr;
    }
    
    public void setCheck(final Boolean check) {
        this.check = check;
    }
    
    @Override
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof AttrValueDto)) {
            return false;
        }
        final AttrValueDto other = (AttrValueDto)o;
        if (!other.canEqual(this)) {
            return false;
        }
        final Object this$check = this.getCheck();
        final Object other$check = other.getCheck();
        Label_0065: {
            if (this$check == null) {
                if (other$check == null) {
                    break Label_0065;
                }
            }
            else if (this$check.equals(other$check)) {
                break Label_0065;
            }
            return false;
        }
        final Object this$attr = this.getAttr();
        final Object other$attr = other.getAttr();
        if (this$attr == null) {
            if (other$attr == null) {
                return true;
            }
        }
        else if (this$attr.equals(other$attr)) {
            return true;
        }
        return false;
    }
    
    protected boolean canEqual(final Object other) {
        return other instanceof AttrValueDto;
    }
    
    @Override
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $check = this.getCheck();
        result = result * 59 + (($check == null) ? 43 : $check.hashCode());
        final Object $attr = this.getAttr();
        result = result * 59 + (($attr == null) ? 43 : $attr.hashCode());
        return result;
    }
    
    @Override
    public String toString() {
        return "AttrValueDto(attr=" + this.getAttr() + ", check=" + this.getCheck() + ")";
    }
}
